package com.hz.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class MassageJson {
    private int code;
    private String msg = this.code==0?"操作成功":"操作失败";
    private Object data;

    public MassageJson(int code, Object data){
        this.code = code;
        this.data = data;
    }
}
